package pattern6;

/**
 * p79
 *原型模式
 * @author wdl
 */
public class PrototypePattern {
    public static void main(String[] args) {
        ConcretePrototype1 prototype1=new ConcretePrototype1("id1");
        ConcretePrototype1 prototype2= (ConcretePrototype1) prototype1.clone();
        System.out.println(prototype2.getId());
    }
}
